<?php 
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'formLogin',
	'htmlOptions'=> array('name'=>'formLogin', 'class'=>'formLogin'),
	'action'=>'#',
	'enableAjaxValidation'=>false,
)); 
?>
          <div class="tip">
			<?php echo $form->textField($model,'username', array('id'=>'username_id','title'=>'Username')); ?>
			<?php echo $form->error($model,'username'); ?>
          </div>
          <div class="tip">
			<?php echo $form->passwordField($model,'password',array('id'=>'password','title'=>'Password')); ?>
			<?php echo $form->error($model,'password'); ?>
          </div>
         <div class="loginButton">
	         <div style="float:left;">
				<?php echo $form->checkBox($model,'rememberMe', array('id'=>'on_off','class'=>'on_off_checkbox','value'=>'1')); ?>
				<span class="f_help"><?php echo $form->label($model,'rememberMe'); ?></span>
	              <?php echo $form->error($model,'rememberMe'); ?>
	         </div>
           <div style="float:right;padding:2px 0px ;">
              <div> 
                <ul class="uibutton-group">
                   <li><a class="uibutton normal" href="javascript:void(0);"  id="but_login" >Login</a></li>
               </ul>
              </div>
            </div>
		</div>
<?php $this->endwidget(); ?>